#include "stdio.h"
// 比较两个身份证出生日期
int cmpBirth(char birth1[19], char birth2[19]){
    int i = 6;
    while (birth1[i] == birth2[i]) {
        i++;
        if (i == 14) {
            return 0;
        }
    }
    return birth1[i]-birth2[i] > 0 ? 1 : -1;
}


int main(){
    char birth1[] ="532932200207060916";
    char birth2[] ="532932200207050916";
    int result = cmpBirth(birth1,birth2);
    printf("%d\n",result);
    return 0;
}